package com.html2rss.models.dao;

import com.html2rss.models.Query;
import com.html2rss.models.WizardHistoryPage;
import com.thoughtworks.xstream.XStream;

import java.util.List;

/**
 * User: vvs
 * Date: 14.04.2007
 * Time: 16:11:13
 */
public class RssFeed extends BaseDAO{
    
    private Query query;
    private List<WizardHistoryPage> pages;


    public Query getQuery() {
        return query;
    }

    public void setQuery(Query query) {
        this.query = query;
    }

    public void setData (String s) {
        RssFeed feed = (RssFeed) new XStream().fromXML(s);
        // todo place fields here
        query = feed.getQuery();
    }

    public String getData() {
        return new XStream().toXML(this);
    }
}
